import http from '@/api';

export const Login = data => {
  return http.post('/adminApi/user/login', data);
};

export const Edit = data => {
  return http.post('/adminApi/user/edit', data);
};

export const getUserList = data => {
  return http.post('/adminApi/user/list', data);
};

// 注册
export const Register = data => {
  return http.post('/adminApi/user/register', data);
};

// 删除
export const Delete = data => {
  return http.post('/adminApi/user/delete', data);
};

// 查询单个
export const findById = data => {
  return http.post('/adminApi/user/findById', data);
};
